package com.wzp.yyptproject.controller;


import com.wzp.yyptproject.entity.KeShi;
import com.wzp.yyptproject.entity.User;
import com.wzp.yyptproject.repository.KeShiRepository;
import com.wzp.yyptproject.repository.UserRepository;
import com.wzp.yyptproject.request.UserRequest;
import com.wzp.yyptproject.request.UserRequestZhuCe;
import com.wzp.yyptproject.service.KeShiService;
import com.wzp.yyptproject.service.UserService;
import com.wzp.yyptproject.until.RedisUtils;
import com.wzp.yyptproject.until.UUIDUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Slf4j
@RestController
@CrossOrigin
@RequestMapping("keshi")
public class KeShiController {
    @Autowired
    private KeShiService keShiService;
    @Autowired
    private KeShiRepository keShiRepository;
    @GetMapping("findallkeshi")
    public List<KeShi> findAllKeShi(){
        List<KeShi> list = keShiService.findAll();
            return list;

    }


}



